-- GENERATED SPELL FOR [Infiltrator Hameya] --


function spell0_12248(pUnit, Event) --@Dark Plague,n/a--
pUnit:FullCastSpellOnTarget(18270,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12248', 0, 1)
end

function spell1_12248(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(11977,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12248', 15000, 1)
end

function Sorts_12248(pUnit, Event)
local choix_sorts_12248 = math.random(0, 1)
if choix_sorts_12248 == 0 then
pUnit:RegisterEvent('spell0_12248', 1, 1)
end
if choix_sorts_12248 == 1 then
pUnit:RegisterEvent('spell1_12248', 1, 1)
end
end

function mob12248_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_12248', math.random(1500, 3000), 1)
end

function mob12248_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12248_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12248_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(12248, 1, 'mob12248_Action')
RegisterUnitEvent(12248, 2, 'mob12248_Leave')
RegisterUnitEvent(12248, 3, 'mob12248_Kill')
RegisterUnitEvent(12248, 4, 'mob12248_Die')
